<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%@page isELIgnored="false" %>
<html>
<head>
    <meta charset="utf-8">
    <base href="<%=basePath%>">
    <title>蜗居租房-登录</title>
    <link rel="icon" href="img/22.jpg" type="images/x-ico"/>
    <link rel="stylesheet" href="static/css/bootstrap.css">
    <link rel="stylesheet" href="static/fonts/css/font-awesome.css">
    <style>
        body{
            background: url("");
            animation-name:myfirst;
            animation-duration:12s;
            /*变换时间*/
            animation-delay:2s;
            /*动画开始时间*/
            animation-iteration-count:infinite;
            /*下一周期循环播放*/
            animation-play-state:running;
            /*动画开始运行*/
        }
        @keyframes myfirst
        {
            0%   {background:url("");}
            34%  {background:url("");}
            67%  {background:url("");}
            100% {background:url("");}
        }
        .form{
            background: rgba(255,255,255,0.2);
            width:400px;
            margin:200px auto;
        }
        /*阴影*/
        .fa{
            display: inline-block;
            top: 27px;
            left: 6px;
            position: relative;
            color: #cccccc;
        }
        input[type="text"],input[type="password"]{padding-left:20px;}
    </style>
</head>
<body>
<div class="container">
    <div class="form row">
        <div class="form-horizontal col-md-offset-3" id="login_form">
            <h3 class="form-title" style="margin-left: 80px">登录</h3>
            <div class="col-md-9">
                <span class="tishi" style="color: red">${error}</span>
                <form action="login" method="post">
                    <div class="form-group">
                        <i class="fa fa-user fa-lg"></i>
                        <input class="form-control required" type="text" placeholder="用户名称"  name="username" maxlength="20"/>
                    </div>
                    <div class="form-group">
                        <i class="fa fa-lock fa-lg"></i>
                        <input class="form-control required" type="password" placeholder="用户密码"  name="password" maxlength="8"/>
                    </div>
                    <div class="form-group">
                        <input type="checkbox" name="remember" value="1"/>记住我
                        <button type="submit" class="btn btn-success pull-right">登录</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script src="static/js/jquery-1.12.4.js"></script>
<script>
    $(function () {
        $('.required').focus(function () {
            $('.tishi').text("");
        });



    })
</script>
</body>
</html>
